import ExpenseReportComp from "containers/expense-report/expense-report";
import RequestComp from "containers/request/request";
import NewRequestComp from "containers/request/new-edit-request";
import JDRequestEditComp from "containers/request/jd-request-edit";
import RequestEditComp from "containers/request/new-edit-request";
import RequestDetailComp from "containers/request/base-request-detail";
import GiftRequestDatailComp from 'containers/request/gift-request-detail'
import NewExpenseReportComp from "containers/expense-report/new-expense-report";
import ExpenseReportDetailComp from "containers/expense-report/base-expense-report-detail";
import ScanSendComp from "containers/financial-management/scan-send/scan-send";


export default {
  key: "union",
  icon: "team",
  company: true,
  admin: false,
  subMenu: [
    {
      // 工会报销单
      key: "union-expense-report",
      url: "/main/union/union-expense-report",
      components: ExpenseReportComp,
      parent: "union",
      children: {
        //报销单详情
        expenseReportDetail: {
          key: 'union-expense-report-detail',
          url: '/main/union/union-expense-report/expense-report-detail/:expenseReportOID/:pageFrom',
          components: ExpenseReportDetailComp,
          parent: 'union-expense-report'
        },
        //报销单新建
        newExpenseReport: {
          key: 'new-union-expense-report',
          url: '/main/union/union-expense-report/new-expense-report/:formId/:userOID/:applicationOID/:applicantJobId/:proxy/:driverId',
          components: NewExpenseReportComp,
          parent: 'union-expense-report'
        }
      },
    },
    {
      // 工会申请单
      key: "union-request",
      url: "/main/union/union-request",
      components: RequestComp,
      parent: "union",
      children: {
        //新建申请单
        newRequest: {
          key: 'new-union-request',
          url: '/main/union/union-request/new-union-request/:formOID/:applicantOID/:jobId/:ifProxy',
          components: NewRequestComp,
          parent: 'union-request'
        },
        //京东申请单编辑
        jdRequestEdit: {
          key: 'jd-union-request-edit',
          url: '/main/union/union-request/jd-union-request-edit/:formOID/:applicationOID',
          components: JDRequestEditComp,
          parent: 'union-request'
        },
        //编辑申请单
        requestEdit: {
          key: 'union-request-edit',
          url: '/main/union/union-request/union-request-edit/:formOID/:applicationOID',
          components: RequestEditComp,
          parent: 'union-request'
        },
        //申请单详情
        requestDetail: {
          key: 'union-request-detail',
          url: '/main/union/union-request/union-request-detail/:formOID/:applicationOID/:pageFrom',
          components: RequestDetailComp,
          parent: 'union-request'
        },
        // 礼品申请单详情
        giftRequestDatail: {
          key: 'union-request-giftDetail',
          url: '/main/union/union-request/union-request-giftDetail/:formOID/:applicationOID/:id',
          components: GiftRequestDatailComp,
          parent: 'union-request'
        }
      }
    },
  ],
};
